package YourSpaceDB::User;
# $WCREV WVDATE$
use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('users');
__PACKAGE__->add_columns(qw/ 

user_id
username
password
real_name
location
email
about
confirmation_key
is_logged_in
is_confirmed
create_date
last_here
 /);
 
__PACKAGE__->set_primary_key('user_id');

__PACKAGE__->has_many( map_user_role => 'YourSpaceDB::UserRole', 'user_id');
__PACKAGE__->has_many( comments      => 'YourSpaceDB::Comments', 'comment_id' );
__PACKAGE__->has_many( friends       => 'YourSpaceDB::Friends',  'friend_id'  );


1;